package Year2021.month10.Day21.Day25;

public class Rectangle extends Figure {
    public double chang;
    public double kuan;

    @Override
    public double workPerimeter() {
        double p=2*(chang+kuan);
        return p;
    }

    @Override
    public double workArea() {
        double area=chang*kuan;
        return area;
    }
}
